//
// Created by 吴锐 on 2022/3/3.
//

#ifndef SPEECHCONTESTPROCESSMANAGEMENTSYSTEM_SPEECHMANAGER_H
#define SPEECHCONTESTPROCESSMANAGEMENTSYSTEM_SPEECHMANAGER_H

#endif //SPEECHCONTESTPROCESSMANAGEMENTSYSTEM_SPEECHMANAGER_H

#pragma once
#include "iostream"
#include "vector"
#include "map"
#include "speaker.h"
#include "algorithm"
#include "deque"
#include "functional"
#include "numeric"
#include "fstream"

using namespace std;

class SpeechManager {
public:
    vector<int> v1;
    vector<int> v2;
    vector<int> vVictory;
    map<int, Speaker> m_Speaker;
    int m_Index;
    bool fileIsEmpty;
    map<int, vector<string>>m_Record;

    SpeechManager();

    void showMenu();

    void exitSystem();

    void initSpeech();

    void createSpeaker();

    void startSpeech();

    void speechDraw();

    void speechContest();

    void showScore();

    void saveRecord();

    void loadRecord();

    void showRecord();

    void clearRecord();

    ~SpeechManager();
};